package com.cqupt.service;


import com.cqupt.pojo.SearchInfo;
import org.apache.solr.client.solrj.SolrServerException;

import java.io.IOException;
import java.util.Map;

public interface SolrService {
    // 根据查询条件进行知识的检索
    Map<String, Object> getQueryResultByNLR(Map<String, Object> params) throws IOException, SolrServerException;
    // 添加或修改索引
    void addAndUpdateIndex(SearchInfo searchInfo) throws IOException, SolrServerException;
    // 删除索引
    void deleteIndexById(String id) throws IOException, SolrServerException;
}
